@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css");

page {
  background: #0a0a0a;
}

/* 容器 */
.login-container {
  min-height: 100vh;
  background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 背景装饰 */
.bg-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.circle-1 {
  width: 600rpx;
  height: 600rpx;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  top: -200rpx;
  right: -200rpx;
}

.circle-2 {
  width: 400rpx;
  height: 400rpx;
  background: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
  bottom: -100rpx;
  left: -100rpx;
}

/* 内容区域 */
.content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 80rpx 40rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logo 头部 */
.header {
  display: flex;
  align-items: center;
  gap: 24rpx;
  margin-bottom: 80rpx;
}

.logo-icon {
  font-size: 80rpx;
  filter: drop-shadow(0 4rpx 12rpx rgba(139, 92, 246, 0.4));
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-title {
  font-size: 48rpx;
  font-weight: bold;
  color: #fff;
  letter-spacing: 2rpx;
}

.logo-subtitle {
  font-size: 24rpx;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1rpx;
  margin-top: 8rpx;
}

/* 表单卡片 */
.form-card {
  width: 100%;
  max-width: 600rpx;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  border-radius: 30rpx;
  padding: 60rpx 50rpx;
  border: 1rpx solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.3);
}

/* 表单标题 */
.form-title {
  text-align: center;
  margin-bottom: 50rpx;
}

.title-text {
  display: block;
  font-size: 40rpx;
  font-weight: bold;
  color: #fff;
  margin-bottom: 16rpx;
}

.title-desc {
  display: block;
  font-size: 26rpx;
  color: rgba(255, 255, 255, 0.5);
}

/* 表单 */
.form-view {
  display: flex;
  flex-direction: column;
  gap: 26rpx;
}

.form-item {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 22rpx;
  padding: 28rpx 30rpx;
  border: 1rpx solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.form-item:focus-within {
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 20rpx rgba(139, 92, 246, 0.2);
}

.input-icon {
  width: 60rpx;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-icon .icon {
  font-family: FontAwesome;
  font-size: 32rpx;
  color: rgba(255, 255, 255, 0.5);
}

.form-input {
  flex: 1;
  font-size: 28rpx;
  color: #fff;
  background: transparent;
  border: none;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

/* 登录按钮 */
.login-btn {
  margin-top: 40rpx;
}

/* 注册页面按钮间距调整 */
.agreement + .login-btn {
  margin-top: 30rpx;
}

.btn-login {
  width: 100%;
  height: 100rpx;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-radius: 50rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16rpx;
  border: none;
  box-shadow: 0 10rpx 40rpx rgba(139, 92, 246, 0.4);
  transition: all 0.3s;
}

.btn-login::after {
  border: none;
}

.btn-icon {
  font-family: FontAwesome;
  font-size: 32rpx;
  color: #fff;
}

.btn-text {
  font-size: 32rpx;
  font-weight: 500;
  color: #fff;
  letter-spacing: 4rpx;
}

/* 分割线 */
.divider {
  display: flex;
  align-items: center;
  gap: 20rpx;
  margin: 50rpx 0 30rpx;
}

.divider-line {
  flex: 1;
  height: 1rpx;
  background: rgba(255, 255, 255, 0.1);
}

.divider-text {
  font-size: 24rpx;
  color: rgba(255, 255, 255, 0.4);
}

/* 社交登录 */
.social-login {
  display: flex;
  justify-content: center;
  gap: 40rpx;
}

.social-btn {
  width: 100rpx;
  height: 100rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1rpx solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
}

.social-btn.weixin {
  background: rgba(9, 187, 7, 0.1);
  border-color: rgba(9, 187, 7, 0.3);
}

.social-icon {
  font-family: FontAwesome;
  font-size: 48rpx;
  color: #09bb07;
}

/* 验证码输入框 */
.code-item {
  position: relative;
}

.code-input {
  padding-right: 180rpx !important;
}

.code-btn {
  position: absolute;
  right: 15rpx;
  top: 50%;
  transform: translateY(-50%);
  padding: 16rpx 28rpx;
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  border-radius: 25rpx;
  font-size: 26rpx;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4rpx 12rpx rgba(139, 92, 246, 0.3);
  transition: all 0.3s;
}

/* 用户协议 */
.agreement {
  margin-top: 40rpx;
  margin-bottom: 20rpx;
  padding: 0;
  display: flex;
  justify-content: center;
}

.agreement-label {
  display: flex;
  align-items: center;
  gap: 16rpx;
}

.agreement-checkbox {
  transform: scale(1.1);
}

.agreement-text {
  font-size: 26rpx;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.agreement-link {
  color: #8b5cf6;
  text-decoration: none;
  font-weight: 500;
}

/* 底部链接 */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12rpx;
  margin-top: 50rpx;
}

.footer-text {
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.5);
}

.footer-link {
  font-size: 28rpx;
  color: #8b5cf6;
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
  letter-spacing: 1rpx;
}

.footer-divider {
  font-size: 26rpx;
  color: rgba(255, 255, 255, 0.3);
}
